package com.autoMobile.bean;

import java.util.Date;

public class Vehicle {
    private int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    private String licensePlate; // 车牌号码
    private String model;        // 车辆型号
    private String status;       // 车辆状态 ('可用', '维修中', '报废','使用中')
    private String currentDriver; // 当前驾驶员姓名
    private Date purchaseDate;   // 购买日期
    private int totalMileage;    // 累计里程

    public String getLicensePlate() {
        return licensePlate;
    }

    public void setLicensePlate(String licensePlate) {
        this.licensePlate = licensePlate;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCurrentDriver() {
        return currentDriver;
    }

    public void setCurrentDriver(String currentDriver) {
        this.currentDriver = currentDriver;
    }

    public Date getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(Date purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public int getTotalMileage() {
        return totalMileage;
    }

    public void setTotalMileage(int totalMileage) {
        this.totalMileage = totalMileage;
    }



    public Vehicle(String licensePlate, String model, String status, String currentDriver, Date purchaseDate, int totalMileage) {
        this.licensePlate = licensePlate;
        this.model = model;
        this.status = status;
        this.currentDriver = currentDriver;
        this.purchaseDate = purchaseDate;
        this.totalMileage = totalMileage;
    }

    @Override
    public String toString() {
        return "Vehicle{" +
                "licensePlate='" + licensePlate + '\'' +
                ", model='" + model + '\'' +
                ", status='" + status + '\'' +
                ", currentDriver='" + currentDriver + '\'' +
                ", purchaseDate=" + purchaseDate +
                ", totalMileage=" + totalMileage +
                '}';
    }

    public Vehicle() {
    }

    public static void main(String[] args) {
        System.out.println("cs");
    }
}
